﻿<StackPanel x:Class="TanmiaGrp.GeneralLedger.WinApp.Scenarios.PageNavigationBar"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mui="http://firstfloorsoftware.com/ModernUI"
            xmlns:loc="clr-namespace:TanmiaGrp.GeneralLedger.WinApp"
            Orientation="Horizontal" 
            FlowDirection="RightToLeft">
    <StackPanel.Resources>
        <Style TargetType="{x:Type mui:ModernButton}">
            <Setter Property="Width" Value="32" />
            <Setter Property="Height" Value="32" />
            <Setter Property="EllipseDiameter" Value="30" />
            <Setter Property="Margin" Value="2,0,0,0" />
            <Setter Property="IconWidth" Value="12" />
            <Setter Property="IconHeight" Value="12" />
            <Setter Property="Background" Value="White" />
            <Setter Property="Foreground" Value="#7f7f7f" />
            <Setter Property="BorderBrush" Value="#c9c9c9" />
            <Setter Property="EllipseStrokeThickness" Value="2" />
        </Style>
    </StackPanel.Resources>

    <mui:ModernButton ToolTip="الصفحة الأخيرة" 
                      IconData="{StaticResource NavigatorLast}" 
                      FlowDirection="LeftToRight" 
                      Command="{Binding Path=GoToBackPageCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Last}" />

    <mui:ModernButton ToolTip="التالي" 
                      IconData="{StaticResource NavigatorStep}" 
                      Command="{Binding Path=GoToBackPageCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Next}" />

    <TextBlock Text="{Binding Path=PageNumber}" Margin="4,0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF919191" FontSize="16" />
    
    <mui:ModernButton ToolTip="السابق" 
                      IconData="{StaticResource NavigatorStep}" 
                      FlowDirection="LeftToRight" 
                      Command="{Binding Path=GoToForthPageCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.Previous}" />

    <mui:ModernButton ToolTip="الصفحة الأولى" 
                      IconData="{StaticResource NavigatorLast}" 
                      Command="{Binding Path=GoToForthPageCommand}"
                      CommandParameter="{x:Static loc:NavigationMoveEnum.First}" />
</StackPanel>
